<?php
$this->breadcrumbs=array();

$this->sidebarTop = array(
    'label' => Yii::t('BackEnd', "Admin user"),
    'link' => Yii::app()->createUrl("/adminUser/index")
);
//Declare icons
$iconManager = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/18_12x12.png" class="icon" />&nbsp;';
$iconCreate = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/create_12x12.png" class="icon" />&nbsp;';
$iconDelete = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/delete_12x12.png" class="icon" />&nbsp;';
$iconList = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/12_12x12.png" class="icon" />&nbsp;';
$iconTitle = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/1_16x16.png" class="icon" />&nbsp;';
$iconUpdate = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/edit_12x12.png" class="icon" />&nbsp;';


$this->menu=array(
	array('label'=>$iconUpdate.Yii::t('BackEnd', 'Update'), 'url'=>array('update', 'id'=>$model->id), 'visible'=>UserAccess::checkAccess('AdminUserUpdate')),
	array('label'=>$iconDelete.Yii::t('BackEnd', 'Delete'), 'url'=>'#', 'visible'=>UserAccess::checkAccess('AdminUserDelete'), 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>Yii::t('BackEnd', 'Are you sure you want to delete this item?'))),
	array('label'=>$iconList.Yii::t('BackEnd', 'List'), 'url'=>array('index'), 'visible'=>UserAccess::checkAccess('AdminUserIndex') && !UserAccess::checkAccess('AdminUserAdmin')),
	array('label'=>$iconManager.Yii::t('BackEnd', 'Manage'), 'url'=>array('admin'), 'visible'=>UserAccess::checkAccess('AdminUserAdmin')),
);

$this->slidebar=array(
	array('label'=>Yii::t('Global','Basic information'), 'name'=>'basic-info', 'rel'=>'AdminUser-basic-info'),
);

$this->title = $iconTitle.Yii::t('BackEnd', 'Detail information').': #'.$model->id;
?>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'username',
		'email',
		array(
            'name' => 'password',
            'value' => '*******',
        ),
		'full_name',
		'phone',
		'company',
		array(
            'name' => 'status',
            'value' => AdminUser::model()->getStatusLabel($model->status),
        ),
	),
)); ?>
